package com.atguigu.gmall.product;

import com.atguigu.gmall.common.config.minio.annotation.EnableMinio;
import com.atguigu.gmall.common.config.pool.properties.annotation.EnableAppThreadPool;
import com.atguigu.gmall.common.config.swagger.annotation.EnableRestAPIDocs;
import com.atguigu.gmall.common.exception.EnableAutoExceptionHandle;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author:ahang
 * @create:2022-09-26 20:01
 * @Description:
 * 1.导入mybatis-plus,要求必须配置数据库
 * 2.配置数据库
 * 3.配置nacos
 */
//@EnableCircuitBreaker //开启服务熔断
//@EnableDiscoveryClient //开启服务发现
//@SpringBootApplication
@EnableAutoExceptionHandle //开启自动异常处理
    @EnableFeignClients(basePackages = "com.atguigu.gmall.feign.search")
    @EnableAppThreadPool
    @EnableTransactionManagement
@SpringCloudApplication
@MapperScan(basePackages = "com.atguigu.gmall.product.mapper")
@EnableMinio  //开启服务上传功能
@EnableRestAPIDocs  //开启swaggerAPI文档
public class ProductMainApplication {
    public static void main(String[] args) {
        SpringApplication.run(ProductMainApplication.class,args);
    }
}
